package com.qianfeng.chinamobile.strategy.config;

import com.qianfeng.smsplatform.common.constants.RabbitMqConsants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    @Bean  //声明队列，用于接收我们即将发送的短信，由策略进行处理接受
    public Queue topic_pre_send() {
        return new Queue(RabbitMqConsants.TOPIC_PRE_SEND);
    }
}
